package com.nextbus.model;

import com.google.android.maps.GeoPoint;

/**
 * 
 * @author xxq
 * NextBusConfig 主要用来描述运行软件的参数
 * 如 是否持续更新，显示不可预测的bus，隐藏绿色圈圈，显示搜索过的route等
 * 软件关闭要持续的数据：
 *      上次搜索的路径
 *      上次的视图模式
 *      上次得到的当前位置的经度
 *      上次得到的当前位置的纬度
 *      上次地图缩放级别
 */
public class NextBusConfig {
    // 软件静态参数
    boolean updateConstant;
    boolean showUnPredictableBus;
    boolean hideBlueCircle;
    boolean showRoutePath;
    
    // 软件动态参数
    String route;
    int viewMode;
    //纬度
    int lat;
    //经度
    int lon;
    //GeoPoint(int latitudeE6, int longitudeE6) 
    int zoomLevel;
    
    public NextBusConfig() {
        super();
    }
    
    public NextBusConfig(boolean updateConstant, boolean showUnPredictableBus,
            boolean hideBlueCircle, boolean showRoutePath, String route,
            int viewMode, int lat, int lon, int zoomLevel) {
        super();
        this.updateConstant = updateConstant;
        this.showUnPredictableBus = showUnPredictableBus;
        this.hideBlueCircle = hideBlueCircle;
        this.showRoutePath = showRoutePath;
        this.route = route;
        this.viewMode = viewMode;
        this.lat = lat;
        this.lon = lon;
        this.zoomLevel = zoomLevel;
    }
    public boolean isUpdateConstant() {
        return updateConstant;
    }
    public void setUpdateConstant(boolean updateConstant) {
        this.updateConstant = updateConstant;
    }
    public boolean isShowUnPredictableBus() {
        return showUnPredictableBus;
    }
    public void setShowUnPredictableBus(boolean showUnPredictableBus) {
        this.showUnPredictableBus = showUnPredictableBus;
    }
    public boolean isHideBlueCircle() {
        return hideBlueCircle;
    }
    public void setHideBlueCircle(boolean hideBlueCircle) {
        this.hideBlueCircle = hideBlueCircle;
    }
    public boolean isShowRoutePath() {
        return showRoutePath;
    }
    public void setShowRoutePath(boolean showRoutePath) {
        this.showRoutePath = showRoutePath;
    }
   
    public int getViewMode() {
        return viewMode;
    }
    public void setViewMode(int viewMode) {
        this.viewMode = viewMode;
    }
    
    public int getZoomLevel() {
        return zoomLevel;
    }
    public void setZoomLevel(int zoomLevel) {
        this.zoomLevel = zoomLevel;
    }

    public String getRoute() {
        return route;
    }

    public void setRoute(String route) {
        this.route = route;
    }

    public int getLat() {
        return lat;
    }

    public void setLat(int lat) {
        this.lat = lat;
    }

    public int getLon() {
        return lon;
    }

    public void setLon(int lon) {
        this.lon = lon;
    }
}
